package com.zzyl.nursing.task;

import com.zzyl.nursing.service.IMemberReservationService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * @author Waker
 * @description:
 * @create 2025-09-14-10:56
 */
@Component
@Slf4j
public class ReservationJob {
    @Autowired
    private IMemberReservationService memberReservationService;

    /**
     * 定时更新预约状态
     */
    public void updateReservationStatus()
    {
        log.info("开始更新预约状态");
        memberReservationService.updateReservationStatus();
        log.info("更新预约状态完成");
    }

}
